package com.windea.study.kotlin.game.tankwar2.interfaces

import com.windea.study.kotlin.game.tankwar2.model.*


/**可攻击。*/
interface Attackable : Entity {
	/**所有者。*/
	val owner: Tank
	/**攻击力。*/
	val attack: Int
	
	/**判断是否发生碰撞。*/
	fun isCollision(other: Sufferable): Boolean {
		return checkCollision(other)
	}
	
	/**攻击时的事件。*/
	fun onAttack(entities: MutableList<Entity>) {}
}
